function makeQueryString(params: any) {
    const esc = encodeURIComponent;
    const query = Object.keys(params)
        .filter((k) => !!params[k])
        .map((k) => `${esc(k)}=${esc(params[k])}`)
        .join('&');

    return query;
}

export {makeQueryString};
